// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import routes from './router'
import VueRouter from 'vue-router'
import store from './store'
import FastClick from 'fastclick'
import './config/rem'
import {routerMode} from './config/env'

Vue.config.productionTip = false

if('addEventListener' in document){
	document.addEventListener('DOMContentLoaded',function(){
		FastClick.attach(document.body);
	},false);
}

Vue.use(VueRouter)
const router = new VueRouter({
	routes,
	mode:routerMode,
	strict:process.env.NODE_ENV !== 'production'
})

new Vue({
	router,
	store,
}).$mount('#app')
/* eslint-disable no-new */
/*new Vue({
  el: '#app',
  router,
  template: '<App/>',
  components: { App }
})*/
